/*  1:   */ package org.jetbrains.io;
/*  2:   */ 
/*  3:   */

import com.intellij.openapi.diagnostic.Logger;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerAdapter;
import io.netty.channel.ChannelHandlerContext;

import java.net.ConnectException;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */ 
/* 10:   */ @ChannelHandler.Sharable
/* 11:   */ public final class ChannelExceptionHandler
/* 12:   */   extends ChannelHandlerAdapter
/* 13:   */ {
/* 14:27 */   private static final Logger a = Logger.getInstance(ChannelExceptionHandler.class);
/* 15:29 */   private static final ChannelHandler b = new ChannelExceptionHandler();
/* 16:   */   
/* 17:   */   public static ChannelHandler getInstance()
/* 18:   */   {
/* 19:35 */     return b;
/* 20:   */   }
/* 21:   */   
/* 22:   */   public void exceptionCaught(ChannelHandlerContext paramChannelHandlerContext, Throwable paramThrowable)
/* 23:   */     throws Exception
/* 24:   */   {
/* 25:42 */     if ((paramThrowable instanceof ConnectException)) {
/* 26:43 */       a.debug(paramThrowable);
/* 27:   */     } else {
/* 28:46 */       NettyUtil.log(paramThrowable, a);
/* 29:   */     }
/* 30:   */   }
/* 31:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.io.ChannelExceptionHandler

 * JD-Core Version:    0.7.0.1

 */